<?php
class MY_Form_validation extends CI_Form_validation{
	function matches($str, $field)
	{
		if ( !isset($_POST[$field]) && !isset($this->_field_data[$field]['postdata']) )
		{
			return FALSE;				
		}
		$post_field = $_POST[$field];
		$this_field = $this->_field_data[$field]['postdata'];
		return ($str===$post_field || $str===$this_field) ? true:false;
	}
}
?>